package com.apps.sdses.flink141.jar;


import org.apache.flink.streaming.api.datastream.DataStreamSource;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
import org.apache.flink.table.api.bridge.java.StreamTableEnvironment;

/**
 * @author jiwei
 * @description
 * @date 2023/8/3 16:59
 */
public class TestDS2Table {
    public static void main(String[] args) throws Exception {

        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();

        StreamTableEnvironment tEnv = StreamTableEnvironment.create(env);
        DataStreamSource<String> sourceDS = env.socketTextStream("localhost", 8889, ',', 100);


//        env.fromSource(sourceDS, WatermarkStrategy.noWatermarks(), "MySQL Source")


        env.execute();
    }
}
